Semiconductor device, production method thereof, and electronic device

ABSTRACT

It is an object to provide a semiconductor device which has high sensitivity and excellent electrical power saving due to a structure in which an element having a pin photodiode and a MOS transistor which are integrated is formed in an SOI substrate or the like, and to provide a production method thereof and an electronic device.  
     Since the pin photodiode has a p region  45,  an i region  42,  and an n region  43  which are horizontally arranged in a silicon layer  4,  the element having the pin photodiode  1   a  and the MOS transistor  1   b  which are integrated is formed in the SOI substrate. The n region  43  of the pin photodiode  1   a  and the source of the MOS transistor  1   b  are the same, and, by making use of the commonality, the integrated elements can be arranged in a matrix pattern.

TECHNICAL FIELD

[0001] The present invention relates to a semiconductor device and a production method thereof. The present invention particularly relates to an effective technology for forming, in a substrate in which a semiconductor layer is deposited on an insulating layer, an element in which a pin photodiode converting light into a photocurrent and a MOS transistor through which the photocurrent is output are integrated. An exemplary substrate is an SOI substrate in which a silicon layer is deposited on an insulating layer.

BACKGROUND ART

[0002] Among semiconductor photodetectors converting light into a photocurrent, commonly known are photodiodes, and there is a problem in that an optical signal available for the photodiode has a low response frequency and is hard to detect.

[0003] In order to solve this problem, a pin photodiode in which the width of a depletion layer is enlarged by placing an i region (semiconductor layer) having a suitable thickness in a pn junction and by applying reverse bias has been proposed. The pin photodiode is composed of a conductive layer having a three-layer structure in which a p region is deposited on an i region which is deposited on an n region. When the i region receives light while a voltage is applied to the p region of the pin photodiode, the i region generates electron-hole pairs in response to the light intensity. The hole is transferred to the p region and the electron is transferred to the n region under the influence of the electric field of the depletion layer, so that a current is generated in the pin photodiode in the layered direction.

[0004] The proposed pin photodiode provides high photosensitivity and can be used at high frequencies, and providing the i region allows a reduction in dark current and noise to be achieved.

[0005] A semiconductor element in which the pin photodiode is integrated with the MOS transistor, through which a photocurrent is output, to efficiently output the photocurrent generated in the pin photodiode has been proposed.

DISCLOSURE OF INVENTION

[0006] Since the pin photodiode is composed of the conductive layer having the three-layer structure in which the p region is deposited on the i region which is deposited on the n region, the perpendicular thickness of the conductive layer is at least 2 μm; hence, forming the pin photodiode in a substrate in which a thin semiconductor layer is deposited on an insulating layer is difficult due to this structure. An exemplary substrate is an SOI substrate in which a thin silicon layer is deposited on an insulating layer.

[0007] Since an element in which a pin photodiode and a MOS transistor are integrated is directly formed in a so-called bulk silicon substrate, high-energy incident light penetrates deep into the silicon layer to generate electron-hole pairs. When the charge enters an adjacent gate, an accurate relationship between the incident light and an electrical signal is not realized.

[0008] Accordingly, it is an object of the present invention to provide a semiconductor device in which a pin photodiode and a MOS transistor are integrated on a SOI substrate and the like and which has a high sensitivity and excellent electrical power saving, a production method thereof, and an electronic device.

[0009] In order to solve the above problems, the semiconductor device of the present invention includes the element in which the pin photodiode converting light into a photocurrent in response to the light intensity and the MOS transistor through which the photocurrent is output are integrated, wherein the element is formed in a substrate including an insulating layer and a semiconductor layer deposited on the insulating layer, and wherein the pin photodiode has a p region, an i region, and an n region which are horizontally arranged in the semiconductor layer.

[0010] In the above semiconductor device, since the element in which the pin photodiode and the MOS transistor are integrated is formed in the substrate in which the semiconductor layer is deposited on the insulating layer, a substantial amount of junction leakage current flowing between electrodes is reduced and the high-energy incident light is transmitted through the semiconductor layer to generate electron-hole pairs in the insulating layer, wherein an exemplary substrate is an SOI substrate; hence, a charge entering a adjacent gate is reduced. Thus, the contrast of an input image is improved.

[0011] Since the conductive layer having the three-layer structure included in the pin photodiode is horizontally arranged in the semiconductor layer, the conductive layer can be formed on the substrate in which the semiconductor layer is deposited on the insulating layer, wherein an exemplary substrate is an SOI substrate in which a silicon layer is deposited on an insulating layer.

[0012] In the above semiconductor device, the n region of the pin photodiode and the source of the MOS transistor may be the same.

[0013] In the above semiconductor device, since the n region of the pin photodiode and the source of the MOS transistor may be the same, a photocurrent generated in the pin photodiode is speedily transferred to the MOS transistor; hence the current is efficiently output.

[0014] In the above semiconductor device, the substrate may be a SOI substrate in which a silicon layer is deposited on an insulating layer.

[0015] In the above semiconductor device, a region of the semiconductor layer including the pin photodiode has a larger thickness than that of another region of the semiconductor layer including the MOS transistor; hence, the semiconductor layer has the optimum thicknesses in the use of the pin photodiode and the MOS transistor. Thus, the efficiency of photoconversion in the pin photodiode and the high-speed performance in switching in the MOS transistor are both improved.

[0016] A method for producing the semiconductor device including the element in which the pin photodiode generating a photocurrent in response to light intensity and the MOS transistor through which the photocurrent is output are integrated has the following steps: the step (first ion-implantation step) of implanting ions in the state in which a resist pattern is formed to cover at least an area for forming the p region and the i region of the pin photodiode and to expose another area for forming the MOS transistor, wherein an SOI substrate including an insulating layer and a silicon layer deposited on the insulating layer is used; the step (second ion-implantation step) of implanting ions in the state in which a gate electrode material is deposited on a gate oxidation layer at a position corresponding to an area for forming the gate of the MOS transistor, and in which a resist pattern is formed to cover an area for forming the p region and the i region of the pin photodiode and to expose an area for forming the source and the drain of the MOS transistor and the n region of the pin photodiode; and the step (third ion-implantation step) of implanting ions in the state in which a resist pattern is formed to cover an area for forming the n region and the i region of the pin photodiode and an area for forming the MOS transistor and to expose an area for forming the p region of the pin photodiode.

[0017] Since the above production method of the semiconductor device has the first ion-implantation step, the second ion-implantation step, and the third ion-implantation step, the lateral pin photodiode in which the conductive layer is horizontally arranged in the semiconductor layer is provided. Thus, it can be formed in a substrate in which a semiconductor layer is deposited on an insulating layer, wherein an exemplary substrate is an SOI substrate in which a silicon layer is deposited on an insulating layer.

[0018] The electronic device of the present invention has the above semiconductor devices arranged in a matrix pattern. Such a structure has microelements integrated on a plane and is suitable for detecting a two-dimensional image.

BRIEF DESCRIPTION OF THE DRAWINGS

[0019] [FIG. 1]

[0020]FIG. 1 is a partly enlarged sectional view showing a step of a process for producing a semiconductor device according to an embodiment of the present invention.

[0021] [FIG. 2]

[0022]FIG. 2 is a partly enlarged sectional view showing a step of a process for producing a semiconductor device according to an embodiment of the present invention.

[0023] [FIG. 3]

[0024]FIG. 3 is a partly enlarged sectional view showing a step of a process for producing a semiconductor device according to an embodiment of the present invention.

[0025] [FIG. 4]

[0026]FIG. 4 is a partly enlarged sectional view showing a step of a process for producing a semiconductor device according to an embodiment of the present invention.

[0027] [FIG. 5]

[0028]FIG. 5 is a partly enlarged sectional view showing a step of a process for producing a semiconductor device according to an embodiment of the present invention.

[0029] [FIG. 6]

[0030]FIG. 6 is a partly enlarged sectional view showing a step of a process for producing a semiconductor device according to an embodiment of the present invention.

[0031] [FIG. 7]

[0032]FIG. 7 is a partly enlarged sectional view showing a step of a process for producing a semiconductor device according to an embodiment of the present invention.

[0033] [FIG. 8]

[0034]FIG. 8 is a partly enlarged sectional view showing a semiconductor device according to another embodiment of the present invention.

EMBODIMENTS OF THE INVENTION

[0035] Embodiments of the present invention will now be described with reference to the drawings. FIGS. 1 to 7 are partly enlarged sectional views showing steps for producing a semiconductor device according to an embodiment of the present invention.

[0036] With reference to FIG. 7, the completed semiconductor device 1 according to the embodiment will now be briefly described. The semiconductor device 1 is formed on an SOI substrate 20 in which an insulating layer 3 composed of silicon oxide layer is deposited on a p-type silicon substrate 2 composed of a p⁻⁻ diffusion layer having an extremely low acceptor content and a silicon layer 4 is deposited on the insulating layer 3. The silicon layer 4, which is the top layer of the SOI substrate 20, is used for both a pin photodiode 1 a and a MOS transistor 1 b. Particularly, an n region 43 composed of an n⁺ diffusion layer formed in the silicon layer 4 is used for both the pin photodiode 1 a and the source of the MOS transistor.

[0037] A p region 45 composed of a p⁺ diffusion layer, an i region 42 composed of the p⁻⁻ diffusion layer, and the n region 43 composed of the n⁺ diffusion layer, which are included in a conductive layer 46 having a three-layer structure and defining the pin photogate 1 a, are horizontally arranged in the silicon layer 4. That is, the lateral pin photodiode 1 a in which the conductive layer 46 having the three-layer structure is horizontally arranged is formed in the silicon layer 4.

[0038] On the other hand, the MOS transistor 1 b has a pn junction formed in the silicon layer 4, in which a p region 41 composed of a p⁻ diffusion layer functions as a gate, the n region 43 composed of the n⁺ diffusion layer adjacent to the pin photodiode functions as a source, and another n region 41 functions as a drain.

[0039] A gate oxidation layer 7 composed of thin silicon oxide is disposed on the silicon layer 4 which is the top layer of the SOI substrate 20. A gate electrode 9 composed of polycrystalline silicon is disposed above the p region 41 which lies on the gate oxidation layer 7 and functions as the gate of the MOS transistor 1 a. A first insulating layer 10 composed of silicon oxide is deposited over the gate electrode 9. Openings functioning as a contact connecting to the p region 45 of the pin photodiode 1 a, the p region 41 functioning as the gate of the MOS transistor 1 b, and an n region 44 functioning as the drain are provided in the first insulating layer 10. A metal wiring 11 composed of aluminum is deposited in the openings.

[0040] A second insulating layer 12 composed of silicon oxide is formed on the first insulating layer 10, and another metal wiring 11 is disposed on the second insulating layer 12. A passivation layer 13 composed of silicon nitride is disposed on the metal wiring 11.

[0041] Next, an exemplary method for producing the semiconductor device 1 will now be described.

[0042] As shown in FIG. 1, the insulating layer 3 composed of silicon oxide is deposited on the p-type silicon substrate 2 composed of the p⁻⁻ diffusion layer having an extremely low acceptor content, and the silicon layer 4 having a thickness of about 1 μm is deposited on the insulating layer 3 to form the SOI substrate 20. In the above process, commercial SOI substrates may be used.

[0043] Depositing the silicon nitride layer which is resistant to oxidation and has a thickness of about 140 nm over the entire SOI substrate 20, patterning the silicon nitride layer to cover an element-forming region 1 c with the silicon nitride layer 5, and then oxidation are performed.

[0044] As shown in FIG. 2, the region of the silicon layer 4 that is covered with silicon nitride layer 5 is hardly oxidized because oxygen diffusion is inhibited at the region, and a LOCOS oxide layer 6 composed of a thick silicon layer is formed at the exposed region of the silicon layer 4. The silicon nitride layer 5 is removed by wet etching, and the LOCOS oxide layer 6 composed of a thick silicon oxide layer 4 remains. The element-forming region 1 c providing with the pin photodiode 1 a and the MOS transistor 1 b is separated from another element-forming region (not shown) by the LOCOS oxide layer 6.

[0045] As shown in FIG. 3, the thin gate oxidation layer 7 having a thickness of 8 n.mis deposited to cover the element-forming region 1 c shown in FIG. 2. A resist 8 on the gate oxidation layer 7 is patterned by a known photolithography technique so as to cover a region for forming the p region 45 and the i region 42 of the pin photodiode 1 a and so as to expose another region for forming the MOS transistor 1 b, and then boron ions are implanted to form the p region 41 of the MOS transistor.

[0046] Because the boron ions are not implanted into at least the p region 45 and the i region 42 of the pin photodiode 1 a covered with the resist 8, the region of the silicon layer 4 under the resist 8 is left as the p region composed of the p⁻⁻ diffusion layer.

[0047] On the other hand, the p region 41 composed of the p⁻ diffusion layer is formed at the exposed region of the silicon layer 4 in which the MOS transistor 1 b is formed, and is used as an n channel layer under the gate of the MOS transistor 1 b.

[0048] As shown in FIG. 4, the resist 8 shown in FIG. 3 is removed, and then an n-type polycrystalline silicon layer having a thickness of about 350 nmis deposited to cover the entire element-forming region 1 c. Then, a resist pattern (not shown) is formed on the polycrystalline silicon layer at an region corresponding to a region for forming the gate of the MOS transistor 1 b. In this state, by using the same method as shown in FIG. 3, the polycrystalline silicon layer is deposited at the region for forming the gate of the MOS transistor 1 b to function as the gate electrode 9 of the MOS transistor 1 b.

[0049] A resist 8 is patterned on the gate oxidation layer 7 formed as shown in FIG. 3 by the same method as shown in FIG. 3 so as to cover a region for forming the p region 45 and the i region 42 of the pin photodiode 1 a and so as to expose another region for forming the n region 43 of the pin photodiode 1 a and the MOS transistor 1 b. In this state, phosphorus ions are implanted to form the n region.

[0050] The n⁺ diffusion layers are formed at the gate electrode 9 and at the region of the silicon layer 4 that is not covered with the resist 8. The n region 43 adjacent to the pin photodiode functions as a source, the other n region 44 functions as a drain, and both n regions are connected to an output circuit. The n region 43 functioning as the source of the MOS transistor 1 b is also used as the n⁺ diffusion layer of the pin photodiode 1 a.

[0051] Then, the residual resist 8 shown in FIG. 4 is removed. As shown in FIG. 5, another resist 8 is patterned by the same method as shown is FIG. 3 so as to cover the i region 42 and the n region 43 which belongs to both the MOS transistor 1 b and the pin photodiode and so as to expose the p region 45 of the pin photodiode 1 a. In this state, boron ions are implanted to form a p region.

[0052] The p region 45 composed of the p⁺ diffusion layer is formed in the silicon layer 4 at the region for forming the pin photodiode 1 a, wherein the region is not covered with the resist 8. The p region 45 is treated by rapid thermal annealing to recover the crystallinity which was degraded by the ion implantation in the SOI substrate 20 and to activate the boron ions, so that free electrons and holes function as carriers.

[0053] Up to the present process, the conductive layer 46 including the p region 45 composed of the p⁺ diffusion layer, the i region 42 composed of the p⁻⁻ diffusion layer, and the n region 43 composed of the n⁺ diffusion layer which are included in the pin photodiode 1 a and are arranged in parallel in the silicon layer 4 are provided. Also, three electrodes consisting of a source composed of the n region 43, a drain composed of the n region 44, and a gate composed of the p region 41, which are included in the MOS transistor 1 b, are provided.

[0054] As shown in FIG. 6, the first insulating layer 10 which is composed of silicon oxide and has a thickness of about 800 nmis deposited over the gate electrode 9 formed in the step described in FIG. 4. A resist (not shown) is patterned by the same method as shown in FIG. 3 so as to expose the region of the first insulating layer 10 corresponding to the p region 45 of the pin photodiode 1 a, the gate electrode 9 of the MOS transistor 1 b, and the n region 44 functioning as a drain. In this state, the region of the first insulating layer 10 corresponding to the p region 45 of the pin photodiode 1 a, the gate electrode 9 of the MOS transistor 1 b, and the n region 44 functioning as a drain are removed by dry etching. Then, the residual resist is removed and the metal wiring 11 composed of aluminum is deposited at the contact opening.

[0055] As shown in FIG. 7, the second insulating layer 12 which is composed of silicon oxide and has the same thickness as that of the first insulating layer 10 is deposited on the first insulating layer 10. An aluminum layer for the metal wiring 11 is deposited on the second insulating layer 12, and then the deposited aluminum layer is etched to form wiring. The passivation layer 13 which is composed of silicon nitride and has a thickness of 500 nmis deposited on the second insulating layer 12 in order to protect the second insulating layer 12 composed of silicon oxide. Thus, the semiconductor device 1 in which the element which is composed of the pin photodiode 1 a and the MOS transistor 1 b which are integrated is formed on the SOI substrate 20 is completed.

[0056] When the i layer 42 receives light while a voltage is applied to the p region 45 of the pin photodiode 1 a, the semiconductor device 1 generates a photocurrent in response to the light intensity. Applying a voltage to the gate electrode 9 of the MOS transistor 1 b causes the n region 43 functioning as a source to receive the photocurrent generated in the pin photodiode 1 a and causes the n region 44 functioning as a drain to output the photocurrent.

[0057] Since the pin photodiode 1 a has a structure in which the p region 45, the i region 42, and the n region 43 are horizontally arranged relative to the silicon layer 4, the semiconductor device 1 is formed even in the silicon layer 4 having a thickness of about 1 μm. Thus, an element having the pin photodiode 1 a including the conductive layer 46 having the three-layer structure can be formed in the SOI substrate 20.

[0058] Since a junction leakage current generated in a bulk silicon substrate having a semiconductor element is reduced, the S/N ratio and the dynamic range increases; hence, the noise decreases. Also, elements can be formed close to each other, and that is effective in integrating semiconductor elements.

[0059] Even high-energy incident light is transmitted through the silicon layer 4 to generate electron-hole pairs in the insulating layer 3; hence, charge transfer into the adjacent element is suppressed. Thus, the accurate relationship between the incident light and the electrical signal is realized.

[0060] The n region 43 composed of the n⁺ diffusion layer is used for both the pin photodiode 1 a and the source of the MOS transistor; hence, a photocurrent generated in the pin photodiode 1 a is speedily transferred to the source of the MOS transistor 1 b and, thus, current is efficiently output.

[0061] Elements in which a pin photodiode and a MOS transistor are integrated are arranged in the form of a matrix; hence, microelements are integrated on a plane and, thus, a two-dimensional optical image can be detected. Moreover, the image quality in electronic devices such as copy machines and scanners is improved.

[0062] Apart from the light-detecting device described above, the semiconductor device 1 according to the present invention can also be used as a device for converting light energy into electrical energy, for example, a solar cell.

[0063] Furthermore, as shown in FIG. 8, it is effective that a pin photodiode 1 a is composed of a thick silicon layer 4 and a MOS transistor 1 b is composed of a thin silicon layer 4. FIG. 8 is a partly enlarged plan view showing a semiconductor device 1 according to another embodiment of the present invention.

[0064] In such a structure, an i region 42 generating a photocurrent in a pin photodiode 1 a has a large thickness; hence, the photocurrent increases. Since a MOS transistor 1 b is composed of a thin silicon layer 4, the switching is fast; hence, the pin photodiode 1 a and the MOS transistor 1 b have high functional efficiency. Accordingly, it is effective to form the semiconductor device 1 provided with the pin photodiode 1 a having an improved photoconversion efficiency and the MOS transistor 1 b having high-speed switching.

[0065] When a contact opening connecting to the pin photodiode 1 a is not provided at the top of the pin photodiode 1 a but is provided at the end thereof, providing the contact opening connecting to the pin photodiode 1 a and etching are performed in the same step as that of the contact opening to the MOS transistor lb; hence, the production efficiency is improved.

[0066] Silicon oxide is used for the insulating layers 3, 10, and 12, the silicon nitride layer 5 is used as a layer resistant to oxidation, Al is used for the metal wiring 11, polycrystalline silicon layer is used for the gate electrode 9, and silicon nitride is used for the passivation layer 13. Materials other than those of the embodiments may be used as long as the materials have the same functions as those of the materials used in the embodiments. Also, the thicknesses thereof are not limited to those of the embodiments.

[0067] Although boron ions are used for the p regions 41 and 45 in the embodiments, Al or Ga may be used instead. Although phosphorus ions are used for the n regions 43 and 44, As or Sb may be used instead.

[0068] Although the pin photodiode 1 a and the n-type MOS transistor 1 b both using the same n region 43 are formed in the embodiments, a p-type MOS transistor may be used when the arrangement in the pin photodiode 1 a is in the reverse order. The same effect is achieved in both cases.

[0069] The semiconductor device 1 according to the present invention may be formed by the following method: forming an element in a substrate in which a semiconductor layer is deposited on an insulating layer 3; or forming an element in a semiconductor layer deposited on another substrate and then peeling the semiconductor layer from the substrate to paste it onto an insulating layer 3.

[0070] Although the SOI substrate 20 in which the silicon layer 4 is deposited on the insulating layer 3 is used in the embodiments, other semiconductors may be deposited on the insulating layer 3 other than the silicon layer 4. Furthermore, although the insulating layer 3 composed of silicon oxide is used as an insulator, other insulators such as sapphire may be used instead.

[0071] Advantages

[0072] As described above, in the semiconductor device of the present invention, a substantial amount of junction leakage current flowing between elements is reduced because an element in which a pin photodiode and a MOS transistor are integrated is formed in a substrate in which a semiconductor layer is deposited on an insulating layer, wherein an exemplary substrate is an SOI substrate in which a silicon layer is deposited on an insulating layer. Also, high-energy incident light generates electron-hole pairs in the insulating layer through the semiconductor layer; hence, the structure is suitable to suppress charge transfer to an adjacent gate.

[0073] A semiconductor device having semiconductor elements effectively integrated, high sensitivity, and excellent electrical power saving is provided.

[0074] The structure in which the p region, the i region, and the n region of the pin photodiode are horizontally arranged in the semiconductor layer provides a substrate in which the semiconductor layer is deposited on the insulating layer, wherein an exemplary substrate is the SOI substrate in which the silicon layer is deposited on the insulating layer.

[0075] Since the n region of the pin photodiode and the source of the MOS transistor are the same, the photocurrent is efficiently transferred; hence, the semiconductor device has high-speed performance in operation and excellent electrical power saving.

[0076] In the above semiconductor device, the region of a semiconductor layer including the pin photodiode has a larger thickness than that of another region of the semiconductor layer including the MOS transistor; hence, the semiconductor layer has the optimum thicknesses in the use of the pin photodiode and the MOS transistor.

[0077] Thus, a semiconductor device in which the efficiency of light conversion in the pin photodiode and the high-speed switching performance in the MOS transistor are both improved is provided.

[0078] Since the production method of the semiconductor device according to the present invention has the first ion-implantation step, the second ion-implantation step, and the third ion-implantation step, a lateral pin photodiode in which the conductive layer is horizontally arranged in the semiconductor layer is provided.

[0079] Thus, an element in which the pin photodiode and the MOS transistor are integrated can be formed in the substrate in which the semiconductor layer is deposited on the insulating layer, wherein an exemplary substrate is an SOI substrate in which a silicon layer is deposited on an insulating layer.

[0080] The electronic device of the present invention has the above semiconductor devices arranged in a matrix pattern. Such a structure has microelements integrated on a plane and is suitable for detecting a two-dimensional image. Thus, the image quality of electronic devices such as copy machines and scanners is improved. 

1. A semiconductor device comprising an element in which a pin photodiode generating a photocurrent in response to light intensity and an MOS transistor through which the photocurrent is output are integrated; wherein the element is formed in a substrate comprising an insulating layer and a semiconductor layer deposited on the insulating layer; and wherein the pin photodiode has a p region, an i region, and an n region which are horizontally arranged in the semiconductor layer.
 2. A semiconductor device according to claim 1, wherein the n region of the pin photodiode and the source of the MOS transistor are the same.
 3. A semiconductor device according to claim 1 or 2, wherein the substrate is an SOI substrate in which a silicon layer is deposited on the insulating layer.
 4. A semiconductor device according to any of claims 1 to 3, wherein the semiconductor layer including the pin photodiode has a larger thickness than that of the semiconductor layer including the MOS transistor.
 5. A method for producing a semiconductor device including an element in which a pin photodiode generating a photocurrent in response to light intensity and an MOS transistor through which the photocurrent is output are integrated, comprising; a step (first ion-implantation step) of implanting ions in the state in which a resist pattern is formed to cover at least an area for forming a p region and an i region of the pin photodiode and to expose another area for forming the MOS transistor, wherein an SOI substrate including an insulating layer and a silicon layer deposited on the insulating layer is used; a step (second ion-implantation step) of implanting ions in the state in which a gate electrode material is deposited on a gate oxidation layer at a position corresponding to an area for forming a gate of the MOS transistor, and a resist pattern is formed to cover an area for forming the p region and the i region of the pin photodiode and to expose an area for forming a source and a drain of the MOS transistor and the n region of the pin photodiode; and a step (third ion-implantation step) of implanting ions in the state in which a resist pattern is formed to cover an area for forming the n region and the i region of the pin photodiode and an area for forming the MOS transistor and to expose an area for forming the p region of the pin photodiode.
 6. An electronic device having a structure in which the semiconductor devices according to any of claim 1 to 4 are arranged in a matrix pattern. 